export const formatDate = (isoDate: string|Date): string => {
    const date = new Date(isoDate);
    const year = date.getFullYear();
    const month = date.getMonth() + 1;
    const day = date.getDate();
    let hours = date.getHours();
    let minutes = date.getMinutes();

    // 格式化后的字符串存储在另一个变量中
    const formattedHours: string = hours < 10 ? `0${hours}` : `${hours}`;
    const formattedMinutes: string = minutes < 10 ? `0${minutes}` : `${minutes}`;

    return `${year}年${month}月${day}日 ${formattedHours}:${formattedMinutes}`;
};
